<html>
<head>
  <title>
    BenchmarkSQL Run #{{ runinfo['runID'] }}
  </title>

  {% include "bmsql.css" %}

</head>
<body bgcolor="#ffffff">
  <h1>
    BenchmarkSQL Run #{{ runinfo['runID'] }}
  </h1>

  <p>
    This TPC-C style benchmark run was performed using the
    <b>{{ runinfo['application'] }}</b> Application Module
    of BenchmarkSQL version
    <b>{{ runinfo['jTPCCVersion'] }}</b> and the
    <b>{{ runinfo['dbType'] }}</b> JDBC driver.
  </p>

  <h2>
    Result Summary
  </h2>
  {% include "inc_summary_table.html" %}
  {% include "inc_summary_explain.html" %}

  <h2>
    NEW_ORDER Transactions per Minute
  </h2>
  <p>
    {% include "img_nopm.html" %}
  </p>
  {% include "inc_nopm_explain.html" %}

  <h2>
    NEW_ORDER Latency and Delay
  </h2>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_avg_svg('NEW_ORDER') }}" />
  </p>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_max_svg('NEW_ORDER') }}" />
  </p>

  {% include "inc_latency_explain.html" %}

  <h2>
    PAYMENT Latency and Delay
  </h2>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_avg_svg('PAYMENT') }}" />
  </p>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_max_svg('PAYMENT') }}" />
  </p>

  <h2>
    ORDER_STATUS Latency and Delay
  </h2>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_avg_svg('ORDER_STATUS') }}" />
  </p>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_max_svg('ORDER_STATUS') }}" />
  </p>

  <h2>
    STOCK_LEVEL Latency and Delay
  </h2>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_avg_svg('STOCK_LEVEL') }}" />
  </p>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_max_svg('STOCK_LEVEL') }}" />
  </p>

  <h2>
    DELIVERY (background part) Latency and Delay
  </h2>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_avg_svg('DELIVERY_BG') }}" />
  </p>
  <p>
	<img src="data:image/svg+xml;base64,{{ delay_max_svg('DELIVERY_BG') }}" />
  </p>

  <!--
  # Now create H2 headings and include all the host OS metrics
  # that the user requested via command line options.
  -->
  {% for metric in os_metrics %}
	{% if metric[0] == 'cpu' %}
	<h2>
	  {{ metric[2] }} CPU usage
	</h2>
	<p>
	  {% include "img_cpu.html" %}
	</p>
	{% endif %}

	{% if metric[0] == 'memory' %}
	<h2>
	  {{ metric[2] }} Memory usage
	</h2>
	<p>
	  {% include "img_memory.html" %}
	</p>
	{% endif %}

	{% if metric[0] == 'disk' %}
	<h2>
	  {{ metric[2] }} Disk IO {{ metric[3] }}
	</h2>
	<p>
	  {% include "img_disk_octets.html" %}
	  <br />
	  {% include "img_disk_ops.html" %}
	</p>
	{% endif %}

	{% if metric[0] == 'interface' %}
	<h2>
	  {{ metric[2] }} Network IO {{ metric[3] }}
	</h2>
	<p>
	  {% include "img_interface_octets.html" %}
	  <br />
	  {% include "img_interface_packets.html" %}
	</p>
	{% endif %}
  {% endfor %}

  <h2>Properties of this Run</h2>
  <p>
    The configuration properties of this BenchmarkSQL run were:
  </p>
  <p>
	<table width="100%">
	<tr><td style="background-color:#dddddd;">
	  <pre>{{ properties }}</pre>
	</td></tr>
	</table>
  </p>

</body>
</html>
